package C7_3_ExtractClass;

/**
 * 重构后
 */
public class Person2 {

    private String _name;
    private TelephoneNumber _officeTelephone = new TelephoneNumber();

    public String getName(){
        return _name;
    }

    public String getTelePhoneNumber(){
        return _officeTelephone.getTelePhoneNumber();
    }

    TelephoneNumber getOfficeTelephone(){
        return _officeTelephone;
    }

}
